package com.film.domain;

import java.io.Serializable;
/**
 * 该类是评论表
 * */
public class Review implements Serializable {

    private Integer revId;

    private Film film;//电影

    private User user;//用户

    private String revTime;//评论时间

    private String revContent;//评论内容

    private Float revScore;

    private Integer revPraise;

    @Override
    public String toString() {
        return "Review{" +
                "revId=" + revId +
                ", film=" + film +
                ", user=" + user +
                ", revTime='" + revTime + '\'' +
                ", revContent='" + revContent + '\'' +
                ", revScore=" + revScore +
                ", revPraise=" + revPraise +
                '}';
    }

    public Review() {
    }

    public Integer getRevId() {
        return revId;
    }

    public void setRevId(Integer revId) {
        this.revId = revId;
    }

    public Film getFilm() {
        return film;
    }

    public void setFilm(Film film) {
        this.film = film;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getRevTime() {
        return revTime;
    }

    public void setRevTime(String revTime) {
        this.revTime = revTime;
    }

    public String getRevContent() {
        return revContent;
    }

    public void setRevContent(String revContent) {
        this.revContent = revContent;
    }

    public Float getRevScore() {
        return revScore;
    }

    public void setRevScore(Float revScore) {
        this.revScore = revScore;
    }

    public Integer getRevPraise() {
        return revPraise;
    }

    public void setRevPraise(Integer revPraise) {
        this.revPraise = revPraise;
    }

    public Review(Film film, User user, String revTime, String revContent, Float revScore, Integer revPraise) {
        this.film = film;
        this.user = user;
        this.revTime = revTime;
        this.revContent = revContent;
        this.revScore = revScore;
        this.revPraise = revPraise;
    }

    public Review(Integer revId, Film film, User user, String revTime, String revContent, Float revScore, Integer revPraise) {
        this.revId = revId;
        this.film = film;
        this.user = user;
        this.revTime = revTime;
        this.revContent = revContent;
        this.revScore = revScore;
        this.revPraise = revPraise;
    }
}
